@extends('admin.layouts.application')

@section('title')
    <title>添加收款账号</title>
@stop

@section('content')
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>添加收款账号</h5>
                </div>
                <div class="ibox-content">
                    @include('admin.layouts.msg')
                    <form class="form-horizontal m-t" action="{{route('admin.account.store')}}"
                          method="post">
                        {{csrf_field()}}
                        <div class="form-group">
                            <label class="col-sm-3 control-label">平台名称：</label>
                            <div class="col-sm-2">
                                <input value="" required name="name" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">二维码上传：</label>
                            <div class="col-sm-9">
                                <input id="thumb_upload" class="am-form-group am-form-file" type="file"
                                       style="display:none;">
                                <button class="am-btn am-btn-danger am-btn-sm upload" type="button"><i
                                            class="am-icon-cloud-upload"></i>&nbsp;&nbsp;<span
                                            class="bold">上传</span>
                                </button>
                                <img src="" alt="" id="img_show" style="width: 150px;height: 150px;display: none">
                                <input id="web_log" name="img" value="" type="hidden"/>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">账号：</label>
                            <div class="col-sm-2">
                                <input value="" required name="account" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">备注：</label>
                            <div class="col-sm-2">
                                <input value="" required name="des" class="form-control"
                                       type="text">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">状态：</label>
                            <div class="col-sm-9">
                                <div class="radio">
                                    <label for="r1" class="checkbox-inline">
                                        <input type="radio" name="status" id="r1" value="1">启用
                                    </label>
                                    <label for="r2" class="checkbox-inline">
                                        <input type="radio" name="status" id="r2" value="2">关闭
                                    </label>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button class="btn btn-primary" type="submit">
                                    提交
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <input type="hidden" value="{{route('admin.adminimg')}}" id="imgurl">
@endsection
@section('js')
    <script src="{{asset('assets/upload/jquery.html5-fileupload.js')}}"></script>
    <script src="{{asset('assets/upload/upload_admin.js?v=')}}{{rand(0,9)}}"></script>
@endsection
